package UIPanels;

import javax.swing.JPanel;

/**
 * this general panel is inherited by all panels and it preform number of panel calling
 * control in order to set only one listener for panel instance
 * @author Sapir
 *
 */
public class GeneralPanel extends JPanel
{
	private static final long serialVersionUID = 6448233290157968166L;
	private boolean _runOnce;

	public GeneralPanel()
	{
		super();
		this._runOnce = false;
	}

	/**
	 * @return the _runOnce
	 */
	public boolean isRunOnce()
	{
		return _runOnce;
	}

	/**
	 * @param _runOnce the _runOnce to set
	 */
	public void setRunOnce(boolean runOnceValue)
	{
		this._runOnce = runOnceValue;
	}
}
